import java.io.File;

public class XcherData {
    /*
     * This class is used to store file information in a single hashmap for fast
     * lookup. An object of this class holds all relevant information we need
     * for a specific file.
     */

    private final String fileName;
    private final String path;
    private final int size;

    public XcherData(String path, String fileName) {
	this.fileName = fileName;
	this.path = path;
	File tempFile = new File(path);
	size = (int) tempFile.length();
    }

    public String getFileName() {
	return fileName;
    }

    public String getPath() {
	// get the local path for this file.
	return path;
    }

    public int getSize() {
	return size;
    }
}